<?php
declare(strict_types=1);

namespace SixShop\WechatPay;

use SixShop\Core\ExtensionAbstract;
use SixShop\Payment\Contracts\PaymentExtensionInterface;
use SixShop\Payment\Contracts\PaymentProviderInterface;
use SixShop\WechatPay\Hook\WechatpayHook;

class Extension extends ExtensionAbstract implements PaymentExtensionInterface
{
    public function getPaymentProvider(): PaymentProviderInterface
    {
        return app(PaymentProvider::class);
    }

    public function getHooks(): array
    {
        return [
            WechatpayHook::class,
        ];
    }

    protected function getBaseDir(): string
    {
        return dirname(__DIR__);
    }
}